-
Notifications
You must be signed in to change notification settings - Fork 110
RAJA::launch sycl, tiling, and reduction tests #1473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
test/functional/launch/nested_direct/tests/test-launch-nested-Direct.hpp
Outdated
Show resolved
Hide resolved
test/functional/launch/nested_loop/tests/test-launch-nested-Loop.hpp
Outdated
Show resolved
Hide resolved
test/functional/launch/nested_tile_direct/tests/test-launch-nested-Tile-Direct.hpp
Outdated
Show resolved
Hide resolved
|
Hi all, could I get a review on this PR? I would like to merge it along with #1472 |
|
The last CI run threw the following failure: |
|
@MrBurmark @rchen20 @rhornung67 , @mdavis36 -- good news all green! Did anyone else want to take a look or are we good to merge? |
|
@artv3 this is good to merge. If you want someone else to approve, please ping them. |
|
|
||
| RAJA::launch<LAUNCH_POLICY> | ||
| (RAJA::LaunchParams(RAJA::Teams(blocks), RAJA::Threads(threads)), | ||
| [=] RAJA_HOST_DEVICE(RAJA::LaunchContext ctx) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a question: I've been using [&] to capture the local variables by reference, per the original design of RAJA::Teams. Did something change where now the best practice for Launch is to capture by value, or is capture by value just used for these simple tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe capture-by-value is used on the outer lambda passed to the RAJA::launch method, and lambdas internal to that use capture-by-reference. @artv3 please correct me if I'm wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The outer lambda is capture by value, inner lambdas are capture by reference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, that makes sense.
Turning on SYCL, and adding reduction tests.